public class PetDog {
    private String name;
    private int age;
    private String color;

    public PetDog(){
    }

    public PetDog(String name, int age, String color) {//生成构造方法
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void barks(){
        System.out.println(color+"的"+name+"：旺旺旺~~~~");
    }
    public void wag(){
        System.out.println(color+"的"+name+"：摇尾巴~~~~");
    }
    public static void  staticFun(){
        System.out.println("staticFun......");
    }

    @Override
    public String toString() {
        return "PetDog" +
                "狗名：'" + name + '\'' +
                ", 年龄：" + age +
                ", 颜色：'" + color + '\'' +
                '。';
    }
}
